package com.majie.factoryBean;

import com.majie.lifecircle.MyBean;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class MyFactoryBean implements FactoryBean<MyBean> {
	@Override
	public MyBean getObject( ) throws Exception {
		return new MyBean();
	}

	@Override
	public Class<?> getObjectType( ) {
		return MyBean.class;
	}

	// 设置成非 单例测试
	@Override
	public boolean isSingleton( ) {
		return false;
	}
}
